<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>
<head>
    <title>Title</title>
</head>
<body>
<br/>
<jsp:include page="top.jsp"></jsp:include>
<hr/>
<table border="1px">
    <tr>
        <th>会员用户名</th>
        <th>会员真实姓名</th>
        <th>性别</th>
        <th>年龄</th>
        <th>联系方式</th>
        <th>家庭住址</th>
        <th>&nbsp;</th>
    </tr>
    <c:forEach items="${list}" var="hy">
        <tr>
            <td>${hy.name}</td>
            <td>${hy.realname}</td>
            <td>${hy.sex}</td>
            <td>${hy.age}</td>
            <td>${hy.phoneno}</td>
            <td>${hy.address}</td>
            <td>
               <a href="/hy/delHy.do?id=${hy.id}" onclick="return delConfirm()">删除</a>
            </td>
        </tr>
    </c:forEach>
</table>
<script>
    function delConfirm() {
        if (confirm("确认删除？")) {
            return true;
        } else {
            return false;
        }
    }
</script>
</body>
</html>
